package com.zjitc.pojo;

import java.util.List;

/**
 * Created with IDEA
 * author:lhl
 * Date:2019/2/19 0019
 * Time:10:58
 */
public class Role {
    private Integer id;
    private String roleName;

    private List<UserRole>userRoles;

    public Role() {
    }

    public Role(Integer id, String roleName, List<UserRole> userRoles) {
        this.id = id;
        this.roleName = roleName;
        this.userRoles = userRoles;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public List<UserRole> getUserRoles() {
        return userRoles;
    }

    public void setUserRoles(List<UserRole> userRoles) {
        this.userRoles = userRoles;
    }


    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", roleName='" + roleName + '\'' +
                ", userRoles=" + userRoles +
                '}';
    }
}
